#include <QtGui>

class TFoo : public QObject {
    Q_OBJECT
    Q_PROPERTY(int Height READ GetHeight WRITE SetHeight)
    typedef QObject MyParent;
private:
    int height;
public:
    TFoo(QObject *pobj = 0)
        : MyParent(pobj), height(0)
    {}

    int GetHeight() const {
        return height;
    }

    void SetHeight(int h) {
        height = h;
    }
};

int main(int argc, char** argv) {
    QApplication app(argc, argv);
    QLabel lbl("Hello, world!");
    lbl.show();
    return app.exec();
}
